package cn.wanho.util;

import cn.hutool.crypto.digest.DigestUtil;

/**
 * 针对用户密码进行加密和解密的操作
 */
public class PassEnDeUtil {

    //定义扰码
    private static  final  String STR = "wanhocms";

    /**
     * 加密
     */

    public static String encoder(String pass,String salt){
        String  md5Pass =  DigestUtil.md5Hex(pass);
           return DigestUtil.md5Hex(STR + md5Pass + salt);
    }


}
